namespace RAG.Domain.Entities.App;

public class Conversations : EntityBase
{
    //问题
    public string Question { get; set; } = default!;
    //答案
    public string Answer { get; set; } = default!;
    //把本次回答所引用的文档片段信息打包成 JSON 存下来，方便前端展示"参考来源"
    public string? SourceDocuments {get; set;}
    //置信度
    public decimal? ConfidenceScore { get; set; }
    //响应时间
    public int? ResponseTimeMs { get; set; }
    
    //外键
    public Guid UserId { get; set; }
    public Guid SessionId { get; set; }
    
    //导航属性
    public Users User { get; set; } = default!;
    public Sessions Session { get; set; } = default!;
}